Skip to content

Кузьмин Иван M3337#42

Open
space-created wants to merge 4 commits intoitmo2019:masterfrom
space-created:master
Open

Кузьмин Иван M3337#42
space-created wants to merge 4 commits intoitmo2019:masterfrom
space-created:master

Conversation

@space-created
Copy link

No description provided.

@evgenymarkov evgenymarkov self-requested a review May 23, 2019 15:47
@evgenymarkov evgenymarkov self-assigned this May 23, 2019
style.css Outdated
cursor: pointer;
}

.letter-body_opened__close:hover {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

После модификатора не может быть другого модификатора или элемента

}

function getReadLetter(currentReadableLetter) {
currentReadableLetter.classList.remove('is-read_not-read');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

letter_read


function uncheckAllChecker(currentCheckBox) {
if (!currentCheckBox.checked) {
document.getElementById('check-all-letters').checked = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно использовать просто querySelector или querySelectorAll всегда

if (letterSection[i] !== wrapperCurLetter) {
letterSection[i].classList.add('letter-body_non-displayed');
} else {
letterSection[i].querySelector('.letter-body_opened').classList.remove('letter-body_non-displayed');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Старайся селекторы выносить за пределы циклов и кэшировать их в переменных

-moz-user-select: text;
-ms-user-select: text;
-o-user-select: text;
-webkit-user-select: text;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user-select: value

@evgenymarkov evgenymarkov removed their assignment Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants